
package devbureau.fstore.common;

import java.util.HashMap;
import java.util.Map;

public class ItemWriteOffData {

    private Integer id = null;
    private String name = null;
    private String supplierLabel = null;
    private Integer deliveryQutty = null;
    private Integer balance = null;

    Map<Integer,Integer> orders = new HashMap<Integer,Integer>();

    public ItemWriteOffData(Integer id, String name, String supplierLabel, Integer deliveryQutty, Integer balance) {
        this.id = id;
        this.name = name;
        this.supplierLabel = supplierLabel;
        this.deliveryQutty = deliveryQutty;
        this.balance = balance;
    }

    public void addOrder(Integer id,Integer qtty) {
        orders.put(id, qtty);
    }

    public Integer getBalance() {
        return balance;
    }

    public String getSupplierLabel() {
        return supplierLabel;
    }

    public Integer getDeliveryQutty() {
        return deliveryQutty;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Map<Integer, Integer> getOrders() {
        return orders;
    }
}
